// pages/user/hongbaorecord.js
const app = getApp()
var util = require('../../utils/util.js')
var http = require('../../utils/server.js')
Page({
  data: {
    list: []
  },
  onLoad: function (options) {
    var that = this;
    //筛选条件
    http.post({
      url: "Redpacket/record"
    }, function (data) {
      console.log('红包记录', data);
      var list = [];
      for (var key in data) {
        data[key][0].time= key;
        list = list.concat(data[key]);
      }
      that.setData({
        list: list
      })
    })
  },

})